<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.EditIngresosEgresosTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.EditIngresosEgresosLabel_idIngresoEgreso}" for="idIngresoEgreso" />
                    <h:inputText id="idIngresoEgreso" value="#{ingresosEgresosController.selected.idIngresoEgreso}" title="#{bundle.EditIngresosEgresosTitle_idIngresoEgreso}" required="true" requiredMessage="#{bundle.EditIngresosEgresosRequiredMessage_idIngresoEgreso}"/>
                    <h:outputLabel value="#{bundle.EditIngresosEgresosLabel_valor}" for="valor" />
                    <h:inputText id="valor" value="#{ingresosEgresosController.selected.valor}" title="#{bundle.EditIngresosEgresosTitle_valor}" required="true" requiredMessage="#{bundle.EditIngresosEgresosRequiredMessage_valor}"/>
                    <h:outputLabel value="#{bundle.EditIngresosEgresosLabel_tipo}" for="tipo" />
                    <h:inputText id="tipo" value="#{ingresosEgresosController.selected.tipo}" title="#{bundle.EditIngresosEgresosTitle_tipo}" required="true" requiredMessage="#{bundle.EditIngresosEgresosRequiredMessage_tipo}"/>
                    <h:outputLabel value="#{bundle.EditIngresosEgresosLabel_descripcion}" for="descripcion" />
                    <h:inputText id="descripcion" value="#{ingresosEgresosController.selected.descripcion}" title="#{bundle.EditIngresosEgresosTitle_descripcion}" required="true" requiredMessage="#{bundle.EditIngresosEgresosRequiredMessage_descripcion}"/>
                    <h:outputLabel value="#{bundle.EditIngresosEgresosLabel_idBeneficiario}" for="idBeneficiario" />
                    <h:selectOneMenu id="idBeneficiario" value="#{ingresosEgresosController.selected.idBeneficiario}" title="#{bundle.EditIngresosEgresosTitle_idBeneficiario}" required="true" requiredMessage="#{bundle.EditIngresosEgresosRequiredMessage_idBeneficiario}">
                        <f:selectItems value="#{beneficiarioController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                </h:panelGrid>
                <h:commandLink action="#{ingresosEgresosController.update}" value="#{bundle.EditIngresosEgresosSaveLink}"/>
                <br />
                <br />
                <h:commandLink action="View" value="#{bundle.EditIngresosEgresosViewLink}" immediate="true"/>
                <br />
                <h:commandLink action="#{ingresosEgresosController.prepareList}" value="#{bundle.EditIngresosEgresosShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.EditIngresosEgresosIndexLink}" action="/index" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
